import pkg from './package.json'
import typescript from '@rollup/plugin-typescript'
import { terser } from "rollup-plugin-terser";

export default {
    input: './src/index.ts',
    output: [
        {
            file: pkg.main,
            format: 'cjs'
        },
        {
            file: pkg.module,
            format: 'es',
        },
        {
            file: 'lib/guide-mini-vue.mini.js',
            format: 'es',
            plugins: [terser({ compress: { drop_console: true } })]
        }
    ],

    plugins: [typescript()]
};